home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp95 / freyja_t.z / freyja_t / Makefile.unx < prev    next >
Makefile  |  1992-04-14  |  2KB  |  125 lines

  1. # Makefile for Freyja
  2. # Configurations only apply to MS/DOS versions.
  3.  
  4. CFLAGS = -O
  5.  
  6. H = freyja.h fgenlib.h
  7. CURSES = -lcurses -ltermcap
  8. XLINK = -lm
  9. CORE = buf.o calc.o char.o date.o display.o file.o flib.o help.o ini.o key.o misc.o region.o table.o term.o white.o word.o xprintf.o
  10. PROGS = freyja
  11.  
  12. all:    $(PROGS)
  13.  
  14. # --------------------------------------------------
  15.  
  16. freyja:    freyja.o $(CORE)
  17.     $(CC) freyja.o $(CORE) $(CURSES) $(XLINK) -o freyja
  18.  
  19. freyja.o:    $(H)
  20.     $(CC) -c $(CFLAGS) -DMAIN freyja.c
  21.  
  22. # --------------------------------------------------
  23.  
  24. $(CORE):    $(H)
  25.  
  26. # --------------------------------------------------
  27.  
  28. # Build MS/DOS diskette from UNIX (Sun) workstation
  29.  
  30. disk:
  31.     -mdel "*"
  32.     -mcopy -t \
  33.         ./makefile.msd ./Makefile.unx README \
  34.         ascii \
  35.         ./buf.c \
  36.         ./c0s.asm \
  37.         ./calc.c \
  38.         ./char.c \
  39.         ./date.c \
  40.         ./display.c \
  41.         ./fcalc.doc \
  42.         ./fcmdlist.doc ./fcmdxref.doc ./fcopying.doc ./ffsf.doc \
  43.         ./fgenlib.h \
  44.         ./file.c \
  45.         ./fleague.doc \
  46.         ./flib.c \
  47.         ./freyja.c \
  48.         ./freyja.doc \
  49.         ./freyja.exe \
  50.         ./freyja.exm \
  51.         ./freyja.h \
  52.         ./freyja.ini \
  53.         ./freyja.lnk \
  54.         ./ftutoria.doc \
  55.         ./fwarrant.doc \
  56.         ./help.c \
  57.         ./ini.c \
  58.         ./jaguar.c \
  59.         ./key.c \
  60.         ./libasm.asm \
  61.         ./makeexm.c \
  62.         ./misc.c \
  63.         ./region.c \
  64.         ./smfreyja.lnk \
  65.         ./smjaguar.c \
  66.         ./table.c \
  67.         ./term.c \
  68.         ./turboc.cfg \
  69.         ./white.c \
  70.         ./word.c \
  71.         ./xprintf.c ./xprintf.doc a:
  72.  
  73. # --------------------------------------------------
  74.  
  75. cleanup:
  76.     -rm *.o
  77.  
  78. cleanall:
  79.     -rm *.o
  80.     -rm $(PROGS)
  81.  
  82. distrib:
  83.     touch *
  84.     tar cvf freyja.tar \
  85.         ./makefile.msd ./Makefile.unx ./README \
  86.         ./ascii \
  87.         ./buf.c \
  88.         ./c0s.asm \
  89.         ./calc.c \
  90.         ./char.c \
  91.         ./date.c \
  92.         ./display.c \
  93.         ./fcalc.doc \
  94.         ./fcmdlist.doc ./fcmdxref.doc ./fcopying.doc ./ffsf.doc \
  95.         ./fgenlib.h \
  96.         ./file.c \
  97.         ./fleague.doc \
  98.         ./flib.c \
  99.         ./freyja.c \
  100.         ./freyja.doc \
  101.         ./freyja.exe \
  102.         ./freyja.exm \
  103.         ./freyja.h \
  104.         ./freyja.ini \
  105.         ./freyja.lnk \
  106.         ./ftutoria.doc \
  107.         ./fwarrant.doc \
  108.         ./help.c \
  109.         ./ini.c \
  110.         ./jaguar.c \
  111.         ./key.c \
  112.         ./libasm.asm \
  113.         ./makeexm.c \
  114.         ./misc.c \
  115.         ./region.c \
  116.         ./smfreyja.lnk \
  117.         ./smjaguar.c \
  118.         ./table.c \
  119.         ./term.c \
  120.         ./turboc.cfg \
  121.         ./white.c \
  122.         ./word.c \
  123.         ./xprintf.c ./xprintf.doc
  124.     compress -v <freyja.tar >freyja.tar.Z
  125.